package org.zeroes.Components;

import org.zeroes.Events.ZSPair;

import com.zeroes.cons.*;
public class ZSGroupBehavior extends ZSBehavior {
	
	public ZSGroupBehavior(String name,ZSGroup groupSubject){
		super(name,new ZSSingle<ZSGroup>(groupSubject));
		
	}
public boolean FrameRateDependant = false; 
	public ZSGroup getGroupProperty(String name){
		
		for(ZSPair<?,?> entry : logic){
			String defin = (String)entry.getFirst();
			String[] items = defin.split("\\.");
			if(items[1].equals("property")&&items[2].equals(name)){
				ZSSingle<?> v = (ZSSingle<?>)entry.getSecond();
				return (ZSGroup)v.getFirst();
			}
			
		}
		return null;
	}
}
